package com.hqyj.service.impl;

import com.hqyj.dao.OutDao;
import com.hqyj.pojo.Manager;
import com.hqyj.pojo.OutUser;
import com.hqyj.service.OutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OutServiceImpl implements OutService {

    @Autowired
    private OutDao outDao;

    @Override
    public List<OutUser> getAll() {
        List<OutUser> OUT = outDao.queryAll();
        return OUT;
    }

    @Override
    public int addOutUser(OutUser outUser) {
        int i = outDao.insertOutOne(outUser);
        return i;
    }
}
